package com.syqc.videos.player

import com.syqc.base.BaseRealFragment
import com.syqc.videos.BasePlayerActivity


class RealPlayerActivity : BasePlayerActivity() {
    private val mapPopupFragment by lazy { MapPopupFragment(1) }
    override fun getMapFragment(): BaseRealFragment<*> {
        return mapPopupFragment
    }

    override fun showMapFragment(carId: String) {
        mapPopupFragment.setCarId(carId)
    }

    override fun hideMapFragment() {
        mapPopupFragment.hide()
    }

    override fun onDestroy() {
        super.onDestroy()
        mapPopupFragment.destroy()
    }
}
